package Interface;

public class ExecSport implements Hockey {

    public void setHomeTeam(String name) {
        System.out.println("Visiting Team " + name);
    }

    public void setVisitingTeam(String name){
        System.out.println("visit team " + name);
    }
    public static void main(String[] args) {
        ExecSport s = new ExecSport();
        s.setHomeTeam("Xi'an");
        s.setVisitingTeam("Xi'an");
        s.overtimePeriod(11);
        s.homeGoalScored();
        s.visitingGoalScored();
    }

    @Override
    public void homeGoalScored() {
        // TODO Auto-generated method stub
        System.out.println("homeGoalScored");
    }

    @Override
    public void visitingGoalScored() {
        // TODO Auto-generated method stub
        System.out.println("visitingGoalScored");
    }

    @Override
    public void endOfPeriod(int period) {
        // TODO Auto-generated method stub
        System.out.println("endOfPeriod" + period);

    }

    @Override
    public void overtimePeriod(int ot) {
        // TODO Auto-generated method stub
        System.out.println("overtimePeriod" + ot);

    }
}

